package com.xxxx.paipaicars.config.filter;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * 公共的过滤器
 * Created by frank on 2023/2/14.
 */
@SuppressWarnings("all")
@Slf4j
@WebFilter("/*")
public class CommonFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        // 每一次请求都会走这里
        System.out.println("filter");
    }
}
